//
//  YGFoodDetailDescCell.m
//  yuanshangyiliao
//
//  Created by admin on 2021/4/30.
//

#import "YGFoodDetailDescCell.h"

@interface YGFoodDetailDescCell ()
@property (nonatomic, strong) UILabel *descLabel;
@end

@implementation YGFoodDetailDescCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self.contentView addSubview:self.descLabel];
        
        [self.descLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.left.offset(10);
            make.bottom.right.offset(-10);
        }];
    }
    return self;
}

- (void)setDesc:(NSString *)desc {
    _desc = desc;
    self.descLabel.text = desc;
}

#pragma mark - Getter

- (UILabel *)descLabel
{
    if(!_descLabel){
        _descLabel = [[UILabel alloc] init];
        _descLabel.numberOfLines = 0;
    }
    return _descLabel;
}

@end
